/* eslint-disable comma-dangle */
// 接口请求统一管理

const api = {
  test: '/liantan/v1/demo/test', // demo/test
};

// 产品信息相关接口
const product = {
  grpGetSubsAndMergeProd: '/geop-intersvc/inter/api/v1/cqcrm/grpGetSubsAndMergeProd',
  validateGroupProduct: '/geop-usersvc/api/v2/group/validate/validateGroupProduct', // 集团产品校验
  checkProducts: '/geop-usersvc/api/v2/group/validate/checkProducts' // 在途订单校验
}
api.product = product

// 评价信息相关接口
const evaluation = {
  getOrderEvaluationList: '/geop-usersvc/user/api/v1.0/evaluationQry/getOrderEvaluationList', // 订单评价列表查询
  calculateOrderEvaluation: '/geop-usersvc/user/api/v1.0/evaluationQry/calculateOrderEvaluation', // 计算评价分数
  orderAppraise: '/geop-usersvc/user/api/v1.0/evaluation/orderAppraise' // 评价
}

api.evaluation = evaluation

/**
 * 接口中心相关接口
 */
api.inter = {
  loginOrder: '/geop-intersvc/inter/api/v1/order/user/loginOrder', // 老订单单点登陆
  qryAuthElement: '/geop-intersvc/inter/api/v1/crm/customer/qryAuthElement', // 可用令牌查询接口
}

/**
 * 用户中心相关接口
 */
api.user = {
  user: '/geop-uservc/inter/api/v1/order/user/loginOrder', // 老订单单点登陆
}

/**
 * rss 相关接口
 */
api.rss = {
  readOne: '/v1/rss/readOne',
  addFollow: '/v1/follow/add',
  queryFollow: '/v1/follow/query',
  readHis: '/v1/rss/readHis',
  addFetch: '/v1/rss/addFetch',
  updateRss: '/v1/rss/updateRss',
  editFollow: '/v1/follow/editFollow',
  delFollow: '/v1/follow/delFollow',
}


export { api };
